package com.example.demo.controller;

import com.example.demo.entity.Element;
import com.example.demo.service.ElementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @Name: TestController
 * @Description: java类作用描述
 * @Author: yn
 * @CreateDate: 2023/7/20 16:24
 * @Remark: 特殊说明
 * @Version: 1.0
 */
@RestController
public class TestController {
    @Autowired
    ElementService elementService;
    @GetMapping("/test")
    public void test() {
        List<Element> all = elementService.findAll();
        System.out.println(all);
    }
}
